package com.learn.sunday.auth.bean;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;

/**
 * 视图库对象
 */
@Data
@Table(name = "viid_server")
public class ViidServer {

    @Column(name = "ID")
    private Integer id;

    @Column(name = "DEVICE_ID")
    private String deviceId;

    @Column(name = "IP")
    private String ip;

    @Column(name = "PORT")
    private String port;

    @Column(name = "STATUS")
    private Integer status;

    @Column(name = "REGISTER_DATETIME")
    private Date registerTime;

    @Column(name = "UPDATE_TIME")
    private Date updateTime;

    @Column(name = "LAST_ONLINE_TIME")
    private Date lastOnLineTime;

    /**
     * 0 上级 1 下级
     */
    @Column(name = "TYPE")
    private Short type;


}
